//
//  HuoshanViewModel.swift
//  TodayNews
//
//  Created by ZhangBo on 2019/6/17.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import UIKit

class VideoViewModel: BaseViewModel {
    // MARK: 获取首页、视频、小视频的新闻列表数据
    func loadApiNewsFeeds(category: String, ttFrom: TTFrom, _ completionHandler: @escaping (_ maxBehotTime:
        TimeInterval, _ news: [NewsModel]) -> ()) {
        return
        let pullTime = Date().timeIntervalSince1970
        
        let params = ["device_id": device_id,
                      "count": 20,
                      "list_count": 15,
                      "category": category,
                      "min_behot_time": pullTime,
                      "strict": 0,
                      "detail": 1,
                      "refresh_reason": 1,
                      "tt_from": ttFrom,
                      "iid": iid] as [String: Any]
        homeNet.request(.newsFeeds, param: params) {
            
        }
    }
    
    // MARK: 获取首页、视频、小视频的新闻列表数据,加载更多
    func loadMoreApiNewsFeeds(category: String, ttFrom: TTFrom, maxBehotTime: TimeInterval, listCount: Int, _
        completionHandler: @escaping (_ news: [NewsModel]) -> ()) {
        return
        let params = ["device_id": device_id,
                      "count": 20,
                      "list_count": listCount,
                      "category": category,
                      "max_behot_time": maxBehotTime,
                      "strict": 0,
                      "detail": 1,
                      "refresh_reason": 1,
                      "tt_from": ttFrom,
                      "iid": iid] as [String: Any]
        homeNet.request(.moreNewsFeeds, param: params) {
            
        }
    }
}
